$OpenBSD: patch-src_gui_curses_CMakeLists_txt,v 1.6 2017/03/23 01:46:23 danj Exp $

Fix cyclical dependency error

--- src/gui/curses/CMakeLists.txt.orig	Sun Jan 15 01:41:25 2017
+++ src/gui/curses/CMakeLists.txt	Sun Mar 12 19:58:13 2017
@@ -100,10 +100,10 @@ add_custom_command(
   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
   COMMENT "Creating symbolic link ${EXECUTABLE}-curses${CMAKE_EXECUTABLE_SUFFIX}"
   )
-add_custom_target(${EXECUTABLE}-curses${CMAKE_EXECUTABLE_SUFFIX} ALL
+add_custom_target(create_weechat-curses_symlink ALL
   DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${EXECUTABLE}-curses${CMAKE_EXECUTABLE_SUFFIX}
 )
-add_dependencies(${EXECUTABLE}-curses${CMAKE_EXECUTABLE_SUFFIX} ${EXECUTABLE})
+add_dependencies(create_weechat-curses_symlink ${EXECUTABLE})
 list(APPEND CMAKE_INSTALL_MANIFEST_FILES "${CMAKE_INSTALL_PREFIX}/bin/weechat-curses${CMAKE_EXECUTABLE_SUFFIX}")
 
 # Install executable and symbolic link
